home *** CD-ROM | disk | FTP | other *** search
-
- ;
- ; A99BDS.LIB for BDS C v1.50 September 4,1982
- ;
- ;
-
- ;
- ; System addresses:
- ;
- base: equ 0000h ;either 0 or 4200h for CP/M systems
- fcb: equ base+5ch ;default file control block
- tbuff: equ base+80h ;sector buffer
- bdos: equ base+5 ;bdos entry point
- tpa: equ base+100h ;transient program area
- nfcbs: equ 9 ;max number of open files allowed at one time
- errorv: equ 255 ;error value returned by BDOS calls
- cccorg: equ tpa ;where run-time package resides *TESTING*
-
- ;**************************************************
- ram: equ cccorg+52Bh ;THIS WILL PROBABLY CHANGE IF YOU CUSTOMIZE CCC.ASM
- ;**************************************************
- args: equ ram+37 ;where arghak puts arg values off the stack
-
- cr: equ 0dh ;ASCII codes: carriage return
- lf: equ 0ah ; linefeed
- newlin: equ lf ; newline
- tab: equ 9 ; tab
- bs: equ 08h ; backspace
- cntrlc: equ 3 ; control-C
-
- ma1toh: equ cccorg+20ah ;get 1st stack element into HL and A
- ma2toh: equ cccorg+213h ; 2nd
- ma3toh: equ ma2toh+6 ; 3rd
- ma4toh: equ ma2toh+12 ; 4th
- ma5toh: equ ma2toh+18 ; 5th
- ma6toh: equ ma2toh+24 ; 6th
- ma7toh: equ ma2toh+30 ; 7th
-
- arghak: equ ma2toh+36 ;copy first 6 or so stack elements to argc area
-
- arg1: equ args ;these are just convenient names for
- arg2: equ args+2 ;the words in the "args" area
- arg3: equ args+4
- arg4: equ args+6
- arg5: equ args+8
- arg6: equ args+10
- arg7: equ args+12
-